<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[type]', ['1'=>'立减券','2'=>'实物'],$row['type'])}
        </div>
    </div>
    <div class="form-group ljx">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stock_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stock_id" data-rule="" data-source="stock/index" class="form-control" name="row[stock_id]" type="text" value="{$row.stock_id|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
         </div>
     </div>
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
         <div class="col-xs-12 col-sm-8">
             <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
         </div>
     </div>-->
    <div class="form-group ljx">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money_max')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_max" data-rule="" class="form-control" step="0.01" name="row[money_max]" type="number" value="{$row.money_max|htmlentities}">
        </div>
    </div>
    <div class="form-group ljx">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money_hui')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_hui" data-rule="" class="form-control" step="0.01" name="row[money_hui]" type="number" value="{$row.money_hui|htmlentities}">
        </div>
    </div>

    <div class="form-group ljx">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sy_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sy_number" min="0" class="form-control" name="row[sy_number]" type="number" value="{$row.sy_number|htmlentities}">
        </div>
    </div>

    <div class="form-group ljx">
        <label class="control-label col-xs-12 col-sm-2">{:__('Limit_min')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-limit_min" min="0" class="form-control" step="0.01" name="row[limit_min]" type="number" value="{$row.limit_min|htmlentities}">
        </div>
    </div>
    <div class="form-group ljx">
        <label class="control-label col-xs-12 col-sm-2">{:__('Limit_max')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-limit_max" min="0" class="form-control" step="0.01" name="row[limit_max]" type="number" value="{$row.limit_max|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>'启用','0'=>'停用'],$row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
